﻿<Window x:Class="form.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto">
            </RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
     
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition Width="auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Label Content="ID" Grid.Row="0" Grid.Column="0"></Label>
        <Label Content="Name" Grid.Row="1" Grid.Column="0"></Label>
        <TextBox Name="txtid" Grid.Column="1" Grid.Row="0"></TextBox>
        <TextBox Name="txtname" Grid.Column="1" Grid.Row="1"></TextBox>
        <Button Content="Ghi" Grid.Row="2" Grid.Column="2" Width="100" Margin="0,0,100,0" Click="Button_Click"></Button>
        <Button Content="Thoat" Grid.Row="2" Grid.Column="2" Width="100" Margin="110,0,0,0" Click="Button_Click_1"></Button>
        
    </Grid>
</Window>
